<%@ page language="java" import="entitybean.oc_property_tools.EntityBean_Oc_Property_Tools,entitybean.oc_property.EntityBean_Oc_Property,java.util.*,view.ViewOc_Property,tools.PageBeanPlus,form.PropertyForm" pageEncoding="utf-8"%>
<%List<EntityBean_Oc_Property> list=(List<EntityBean_Oc_Property>)request.getAttribute("list");
EntityBean_Oc_Property_Tools e=(EntityBean_Oc_Property_Tools)request.getAttribute("e");
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>adminindex</title>
<link href="../../css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function  update_me()
{
	
	var obj=window.confirm("是否要提交数据");
	if(obj==true)
	{
		
		var url="<%=request.getContextPath()%>/admin_update_property_tools.do?method=admin_update_oc_property_tools&v="+Math.random();
		document.getElementById("form1").action=url;
    	document.getElementById("form1").submit();
        window.alert("提交数据!");
	}
}

</script>
<style>
body{
	background-color: #EAEBE3;
}
</style>
</head>
<body>


<div class="admin_nei">


<div class="xge">
 <!--<div class="xgetitle"><img src="../../images/admin_38.jpg" alt="" /></div> -->
  <div class="gt">
    
    
    
    <div class="gtt">
     <form method="post" action="" name="form1" id="form1">
   <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a0a297">
     <tr>
       <td bgcolor="#eaebe3">属性工具添加</td>
       </tr>
   </table>
   <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#E6E6E6" id="admintxt">
     <tr>
       <td width="14%" align="right" bgcolor="#FFFFFF">工具名称：</td>
       <td width="86%" bgcolor="#FFFFFF">
       <input type="text" name="tools_name" value="<%=e.getTools_name()%>" id="tools_name" /></td>
       </tr>
     <tr>
       <td align="right" bgcolor="#FFFFFF">是否默认：</td>
       <td bgcolor="#FFFFFF">
       <select name="def" id="def">
       <option value="YES"<%if(e.getDef().equals("YES")){ %> selected <%} %>>YES</option>
       <option value="NO" <%if(e.getDef().equals("NO")){ %> selected <%} %>>NO</option>
       </select></td>
     </tr>
     <tr>
       <td align="right" bgcolor="#FFFFFF">属性：</td>
       <td bgcolor="#FFFFFF">
       <select name="pid" id="pid">
       <%for(int i=0;i<list.size();i++){ %>
       <option value="<%=list.get(i).getId()%>" <%if(e.getPid().equals(list.get(i).getId())){ %> selected <%} %>><%=list.get(i).getProperty_name() %></option>
       <%} %>
       </select></td>
     </tr>
     <tr>
       <td bgcolor="#FFFFFF">&nbsp;</td>
       <td bgcolor="#FFFFFF"><input type="hidden" name="id" id="id" value="<%=e.getId()%>"/><input type="button" name="button" id="button" value=" 提交 " onclick="update_me()"/></td>
     	
     </tr>
   </table>
   </form>
 </div>
    
    
    
    
    </div>
  
</div>
</div>







</body>
</html>
